<?php

require_once(dirname(__FILE__) . '/../Query.php');

class Rams_FilterQuery extends RawsQuery
{
  public function __construct($type = null, $active = null)
  {
      parent::__construct();
      $this->setType($type);
      $this->setActive($active);
  }

  public function setType($value)
  {
    if ($value !== null) {
        $this->_params['type'] = $value;
    } else {
        unset($this->_params['type']);
    }
    return $this;
  }

  public function setActive($value)
  {
    if ($value !== null) {
        $this->_params['active'] = $value;
    } else {
        unset($this->_params['active']);
    }
    return $this;
  }


  public function getQueryUrl($base_uri, $path)
  {
    return parent::getQueryUrl($base_uri, "filter", $path);
  }

}
